package ru.evga.inse.server.gwt.common.client.domain.dict;

import ru.evga.gwt.lib.common.client.domain.BaseEntityDto;


final public class CityDto
    extends BaseEntityDto
{
    // Overlay types always have protected, zero argument constructors.
    protected CityDto()
    {
    }

    static public final native CityDto createEmptyCityDto() /*-{
        return eval("({})");
    }-*/;

    public final String getEntityName()
    {
        return "city";
    }

    // JSNI methods 
    public final native String getName() /*-{
        return this.name;
    }-*/;

    public final native void setName(String name) /*-{
        this.name = name;
    }-*/;

    static public final native CityDto asCityDto(String json) /*-{
        return eval("(" + json + ")");
    }-*/;
}